import { createSSRApp } from "vue";
import * as Pinia from 'pinia';
import App from "./App.vue";
import GlobalPlugin from './plugins/global'
import { setupStore } from '@/store'

export function createApp() {
  const app = createSSRApp(App);
  setupStore(app);
  // 注册全局方法与平台信息
  app.use(GlobalPlugin)
  return {
    app,
    Pinia
  };
}
